<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.ntp.NtpV3Packet类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1ntp_1_1NtpV3Packet.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1ntp_1_1NtpV3Packet-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.ntp.NtpV3Packet类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>RFC 1305 中描述的 NTP 数据消息头的接口，包含了对应字段的获取和设置方法。  
 <a href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.ntp.NtpV3Packet 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1ntp_1_1NtpV3Packet.png" usemap="#commonsNet.ntp.NtpV3Packet_map" alt=""/>
  <map id="commonsNet.ntp.NtpV3Packet_map" name="commonsNet.ntp.NtpV3Packet_map">
<area href="classcommonsNet_1_1ntp_1_1NtpV3Impl.html" title="NtpV3Packet 的实现类，包含将其他类型对象与 NtpV3Impl 相互转换的方法。" alt="commonsNet.ntp.NtpV3Impl" shape="rect" coords="0,112,181,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7e96c5865a64870ba2ce1829a8659b49"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a7e96c5865a64870ba2ce1829a8659b49">getUdpSocket</a> (): UdpSocket</td></tr>
<tr class="memdesc:a7e96c5865a64870ba2ce1829a8659b49"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取 NTP 客户端使用的的套接字。  <br /></td></tr>
<tr class="separator:a7e96c5865a64870ba2ce1829a8659b49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bd2e4ee05340ca72d774391567cb418"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a7bd2e4ee05340ca72d774391567cb418">getLeapIndicator</a> (): UInt32</td></tr>
<tr class="memdesc:a7bd2e4ee05340ca72d774391567cb418"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取跳秒指示符。  <br /></td></tr>
<tr class="separator:a7bd2e4ee05340ca72d774391567cb418"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1a60577907aed9da9105e269696bfdf"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ac1a60577907aed9da9105e269696bfdf">getMode</a> ():UInt32</td></tr>
<tr class="memdesc:ac1a60577907aed9da9105e269696bfdf"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取 NTP 中使用的模式。  <br /></td></tr>
<tr class="separator:ac1a60577907aed9da9105e269696bfdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbb281d002f8a71a1a0885c566fc062b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#abbb281d002f8a71a1a0885c566fc062b">getModeName</a> (): String</td></tr>
<tr class="memdesc:abbb281d002f8a71a1a0885c566fc062b"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取 NTP 中使用的模式对应的字符串。例如 3=Client  <br /></td></tr>
<tr class="separator:abbb281d002f8a71a1a0885c566fc062b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace09a2c84c997002c19279fa8ab49a61"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ace09a2c84c997002c19279fa8ab49a61">getOriginateTimeStamp</a> (): <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td></tr>
<tr class="memdesc:ace09a2c84c997002c19279fa8ab49a61"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取源时间戳。  <br /></td></tr>
<tr class="separator:ace09a2c84c997002c19279fa8ab49a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62ec5b7a79bd28638228ea0ed96bb78a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a62ec5b7a79bd28638228ea0ed96bb78a">getPoll</a> (): Int32</td></tr>
<tr class="separator:a62ec5b7a79bd28638228ea0ed96bb78a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fefeb321f4507469590f4d91a2d7a57"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a1fefeb321f4507469590f4d91a2d7a57">getPrecision</a> (): Int32</td></tr>
<tr class="separator:a1fefeb321f4507469590f4d91a2d7a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b8c457d49ff388eabc43eb92d8f0a61"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a0b8c457d49ff388eabc43eb92d8f0a61">getReceiveTimeStamp</a> (): <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td></tr>
<tr class="separator:a0b8c457d49ff388eabc43eb92d8f0a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87a10a202db469efd34dc2e570f40a5a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a87a10a202db469efd34dc2e570f40a5a">getReferenceId</a> (): Int32</td></tr>
<tr class="separator:a87a10a202db469efd34dc2e570f40a5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71518f8569106f12d782f70885d9feb2"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a71518f8569106f12d782f70885d9feb2">getReferenceIdString</a> (): String</td></tr>
<tr class="separator:a71518f8569106f12d782f70885d9feb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab089b0b26783af1d4ffdcd59f314f3c8"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab089b0b26783af1d4ffdcd59f314f3c8">getReferenceTimeStamp</a> (): <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td></tr>
<tr class="separator:ab089b0b26783af1d4ffdcd59f314f3c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4c3faa4c01cbce02a4320f8d1d6bcd8"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#aa4c3faa4c01cbce02a4320f8d1d6bcd8">getRootDelay</a> (): Int32</td></tr>
<tr class="separator:aa4c3faa4c01cbce02a4320f8d1d6bcd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4c5e4529bfe1694f672b9613d485bb7"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab4c5e4529bfe1694f672b9613d485bb7">getRootDelayInMillisFloat64</a> (): Float64</td></tr>
<tr class="separator:ab4c5e4529bfe1694f672b9613d485bb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecf8b501a8279f77a3724bf72668171b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#aecf8b501a8279f77a3724bf72668171b">getRootDispersion</a> (): Int32</td></tr>
<tr class="separator:aecf8b501a8279f77a3724bf72668171b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cfb18adf20eaaae87fb7969be09aed0"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a5cfb18adf20eaaae87fb7969be09aed0">getRootDispersionInMillis</a> (): Int64</td></tr>
<tr class="separator:a5cfb18adf20eaaae87fb7969be09aed0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad26374e89440d46421506052e7627722"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ad26374e89440d46421506052e7627722">getRootDispersionInMillisFloat64</a> (): Float64</td></tr>
<tr class="separator:ad26374e89440d46421506052e7627722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40ca16996d6e3fa123f519676687e7e9"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a40ca16996d6e3fa123f519676687e7e9">getStratum</a> (): UInt32</td></tr>
<tr class="separator:a40ca16996d6e3fa123f519676687e7e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92236fa08236748e726cf843f94a2b41"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a92236fa08236748e726cf843f94a2b41">getTransmitTimeStamp</a> (): <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td></tr>
<tr class="separator:a92236fa08236748e726cf843f94a2b41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab92e1ec8363b6cbe03036537b4b406d5"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab92e1ec8363b6cbe03036537b4b406d5">getType</a> (): String</td></tr>
<tr class="memdesc:ab92e1ec8363b6cbe03036537b4b406d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回时间包的类型。值（例如 NTP、TIME、ICMP 等）对应于用于获取时间信息的协议。  <br /></td></tr>
<tr class="separator:ab92e1ec8363b6cbe03036537b4b406d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34090a8abb0dd770b642a2b0791121ae"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a34090a8abb0dd770b642a2b0791121ae">getVersion</a> (): UInt32</td></tr>
<tr class="separator:a34090a8abb0dd770b642a2b0791121ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab235ce215132dac9b101917e4726f6a1"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab235ce215132dac9b101917e4726f6a1">setSocketref</a> (dp: ?UdpSocket): Unit</td></tr>
<tr class="memdesc:ab235ce215132dac9b101917e4726f6a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据 NTP 使用的套接字设置此对象的内容  <br /></td></tr>
<tr class="separator:ab235ce215132dac9b101917e4726f6a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09b1761ca8e126573c4b3eb192c32ec1"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a09b1761ca8e126573c4b3eb192c32ec1">setLeapIndicator</a> (li: Int32): Unit</td></tr>
<tr class="memdesc:a09b1761ca8e126573c4b3eb192c32ec1"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置跳秒指示符。  <br /></td></tr>
<tr class="separator:a09b1761ca8e126573c4b3eb192c32ec1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad23fcac3bda308670962aa396e9bcbb5"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ad23fcac3bda308670962aa396e9bcbb5">setMode</a> (mode: Int32): Unit</td></tr>
<tr class="memdesc:ad23fcac3bda308670962aa396e9bcbb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置模式，如 RFC-1305 中定义  <br /></td></tr>
<tr class="separator:ad23fcac3bda308670962aa396e9bcbb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97737beb9bf339e72d19f633a725a168"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a97737beb9bf339e72d19f633a725a168">setOriginateTimeStamp</a> (ts: ? <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a>): Unit</td></tr>
<tr class="memdesc:a97737beb9bf339e72d19f633a725a168"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置源时间戳。  <br /></td></tr>
<tr class="separator:a97737beb9bf339e72d19f633a725a168"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66154105e9cd0b77bba3cde4058d1e93"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a66154105e9cd0b77bba3cde4058d1e93">setPoll</a> (poll: Int32): Unit</td></tr>
<tr class="memdesc:a66154105e9cd0b77bba3cde4058d1e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置轮询间隔，如 RFC-1305 中定义。字段范围在 NTP_MINPOLL 和 NTP_MAXPOLL 之间  <br /></td></tr>
<tr class="separator:a66154105e9cd0b77bba3cde4058d1e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab582eed511b06fe5954d76ceea77114a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab582eed511b06fe5954d76ceea77114a">setPrecision</a> (precision: Int32): Unit</td></tr>
<tr class="memdesc:ab582eed511b06fe5954d76ceea77114a"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置精度，如 RFC-1305 中定义  <br /></td></tr>
<tr class="separator:ab582eed511b06fe5954d76ceea77114a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9d284182e049eec65a7dcadf8cf81f0"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#aa9d284182e049eec65a7dcadf8cf81f0">setReceiveTimeStamp</a> (ts: ? <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a>): Unit</td></tr>
<tr class="memdesc:aa9d284182e049eec65a7dcadf8cf81f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置接收时间戳。  <br /></td></tr>
<tr class="separator:aa9d284182e049eec65a7dcadf8cf81f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48c85214fd9fef8b216490c9617d48b6"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a48c85214fd9fef8b216490c9617d48b6">setReferenceId</a> (refId: UInt32): Unit</td></tr>
<tr class="memdesc:a48c85214fd9fef8b216490c9617d48b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置参考时钟标识字段。  <br /></td></tr>
<tr class="separator:a48c85214fd9fef8b216490c9617d48b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30a3abcc45de9f104e1f84d5d35fd811"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a30a3abcc45de9f104e1f84d5d35fd811">setReferenceTime</a> (ts: ? <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a>): Unit</td></tr>
<tr class="memdesc:a30a3abcc45de9f104e1f84d5d35fd811"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置参考时间戳。  <br /></td></tr>
<tr class="separator:a30a3abcc45de9f104e1f84d5d35fd811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ceb251d6727ab7fdd2a6028f2d5a5e6"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a4ceb251d6727ab7fdd2a6028f2d5a5e6">setRootDelay</a> (delay: Int32): Unit</td></tr>
<tr class="memdesc:a4ceb251d6727ab7fdd2a6028f2d5a5e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置根延迟，如 RFC-1305 中定义。  <br /></td></tr>
<tr class="separator:a4ceb251d6727ab7fdd2a6028f2d5a5e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c469ad53409a0b4f0eff4e7ab4e3ceb"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a4c469ad53409a0b4f0eff4e7ab4e3ceb">setRootDispersion</a> (dispersion: Int32): Unit</td></tr>
<tr class="memdesc:a4c469ad53409a0b4f0eff4e7ab4e3ceb"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置根离散度，如 RFC-1305 中定义。  <br /></td></tr>
<tr class="separator:a4c469ad53409a0b4f0eff4e7ab4e3ceb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad27cfd1efb44e8a66c19c060297a751d"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ad27cfd1efb44e8a66c19c060297a751d">setStratum</a> (stratum: Int64): Unit</td></tr>
<tr class="memdesc:ad27cfd1efb44e8a66c19c060297a751d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置层级，如 RFC-1305 中定义。  <br /></td></tr>
<tr class="separator:ad27cfd1efb44e8a66c19c060297a751d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4c7488ca3652c81c86b985da193488d"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#af4c7488ca3652c81c86b985da193488d">setTransmitTime</a> (ts: ? <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a>): Unit</td></tr>
<tr class="memdesc:af4c7488ca3652c81c86b985da193488d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置传输时间戳。  <br /></td></tr>
<tr class="separator:af4c7488ca3652c81c86b985da193488d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7ce48314dda3d00535bd4c4d2642b45"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#af7ce48314dda3d00535bd4c4d2642b45">setVersion</a> (version: UInt32): Unit</td></tr>
<tr class="memdesc:af7ce48314dda3d00535bd4c4d2642b45"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置版本，如 RFC-1305 中定义。  <br /></td></tr>
<tr class="separator:af7ce48314dda3d00535bd4c4d2642b45"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a02286492ed19243bd9edd500a1f167f8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a02286492ed19243bd9edd500a1f167f8">static let NTP_PORT</a> : UInt16 = 123;</td></tr>
<tr class="memdesc:a02286492ed19243bd9edd500a1f167f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">标准 NTP UDP 端口  <br /></td></tr>
<tr class="separator:a02286492ed19243bd9edd500a1f167f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea9f30ae115fa8a6a37ba2ee6821850f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#aea9f30ae115fa8a6a37ba2ee6821850f">static let LI_NO_WARNING</a> : Int32 = 0;</td></tr>
<tr class="memdesc:aea9f30ae115fa8a6a37ba2ee6821850f"><td class="mdescLeft">&#160;</td><td class="mdescRight">跳秒指示符。  <br /></td></tr>
<tr class="separator:aea9f30ae115fa8a6a37ba2ee6821850f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83052720e5d907c64cd6b4885176c79a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a83052720e5d907c64cd6b4885176c79a">static let LI_LAST_MINUTE_HAS_61_SECONDS</a> : Int32 = 1;</td></tr>
<tr class="memdesc:a83052720e5d907c64cd6b4885176c79a"><td class="mdescLeft">&#160;</td><td class="mdescRight">跳秒指示符。  <br /></td></tr>
<tr class="separator:a83052720e5d907c64cd6b4885176c79a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28c7a23e26c376f15a16d5cddfde1cd2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a28c7a23e26c376f15a16d5cddfde1cd2">static let LI_LAST_MINUTE_HAS_59_SECONDS</a> : Int32 = 2;</td></tr>
<tr class="memdesc:a28c7a23e26c376f15a16d5cddfde1cd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">跳秒指示符。  <br /></td></tr>
<tr class="separator:a28c7a23e26c376f15a16d5cddfde1cd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3699169247958c3f112d13ab53e3646c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a3699169247958c3f112d13ab53e3646c">static let LI_ALARM_CONDITION</a> : Int32 = 3;</td></tr>
<tr class="memdesc:a3699169247958c3f112d13ab53e3646c"><td class="mdescLeft">&#160;</td><td class="mdescRight">跳秒指示符。  <br /></td></tr>
<tr class="separator:a3699169247958c3f112d13ab53e3646c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad32338c49e215560be53338ec9434b9e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ad32338c49e215560be53338ec9434b9e">static let MODE_RESERVED</a> : Int32 = 0;</td></tr>
<tr class="memdesc:ad32338c49e215560be53338ec9434b9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项0。  <br /></td></tr>
<tr class="separator:ad32338c49e215560be53338ec9434b9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae966780c8e7c539ba96108f72559d5e3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ae966780c8e7c539ba96108f72559d5e3">static let MODE_SYMMETRIC_ACTIVE</a> : Int32 = 1;</td></tr>
<tr class="memdesc:ae966780c8e7c539ba96108f72559d5e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项1。  <br /></td></tr>
<tr class="separator:ae966780c8e7c539ba96108f72559d5e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad42baa9e894fdcb01fe6129c2db31b10"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ad42baa9e894fdcb01fe6129c2db31b10">static let MODE_SYMMETRIC_PASSIVE</a> : Int32 = 2;</td></tr>
<tr class="memdesc:ad42baa9e894fdcb01fe6129c2db31b10"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项2。  <br /></td></tr>
<tr class="separator:ad42baa9e894fdcb01fe6129c2db31b10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9e3e949bab85b44d85159ce384b473f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab9e3e949bab85b44d85159ce384b473f">static let MODE_CLIENT</a> : Int32 = 3;</td></tr>
<tr class="memdesc:ab9e3e949bab85b44d85159ce384b473f"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项3。  <br /></td></tr>
<tr class="separator:ab9e3e949bab85b44d85159ce384b473f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26d26c338da03c1bc8c62c7592f8479a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a26d26c338da03c1bc8c62c7592f8479a">static let MODE_SERVER</a> : Int32 = 4;</td></tr>
<tr class="memdesc:a26d26c338da03c1bc8c62c7592f8479a"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项4。  <br /></td></tr>
<tr class="separator:a26d26c338da03c1bc8c62c7592f8479a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dfc36330ccffff1e7e15b5f4426a18b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a8dfc36330ccffff1e7e15b5f4426a18b">static let MODE_BROADCAST</a> : Int32 = 5;</td></tr>
<tr class="memdesc:a8dfc36330ccffff1e7e15b5f4426a18b"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项5。  <br /></td></tr>
<tr class="separator:a8dfc36330ccffff1e7e15b5f4426a18b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab25489385c5449277bbb3561cd696717"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ab25489385c5449277bbb3561cd696717">static let MODE_CONTROL_MESSAGE</a> : Int32 = 6;</td></tr>
<tr class="memdesc:ab25489385c5449277bbb3561cd696717"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项6。  <br /></td></tr>
<tr class="separator:ab25489385c5449277bbb3561cd696717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d9e2aaa2e22e4a14d8aa64df046cb17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a9d9e2aaa2e22e4a14d8aa64df046cb17">static let MODE_PRIVATE</a> : Int32 = 7;</td></tr>
<tr class="memdesc:a9d9e2aaa2e22e4a14d8aa64df046cb17"><td class="mdescLeft">&#160;</td><td class="mdescRight">模式选项7。  <br /></td></tr>
<tr class="separator:a9d9e2aaa2e22e4a14d8aa64df046cb17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d15baadd0df83b17e2fbe0ea08ac3e2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a8d15baadd0df83b17e2fbe0ea08ac3e2">static let NTP_MINPOLL</a> : Int32 = 4;</td></tr>
<tr class="memdesc:a8d15baadd0df83b17e2fbe0ea08ac3e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">最小轮询间隔。  <br /></td></tr>
<tr class="separator:a8d15baadd0df83b17e2fbe0ea08ac3e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a005602de4ea453cead1ab0afed5b8528"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a005602de4ea453cead1ab0afed5b8528">static let NTP_MAXPOLL</a> : Int32 = 14;</td></tr>
<tr class="memdesc:a005602de4ea453cead1ab0afed5b8528"><td class="mdescLeft">&#160;</td><td class="mdescRight">最大轮询间隔。  <br /></td></tr>
<tr class="separator:a005602de4ea453cead1ab0afed5b8528"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eca70afbbb038b178ede7913771b7ab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a8eca70afbbb038b178ede7913771b7ab">static let NTP_MINCLOCK</a> : Int32 = 1;</td></tr>
<tr class="memdesc:a8eca70afbbb038b178ede7913771b7ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">时钟精度最小值。  <br /></td></tr>
<tr class="separator:a8eca70afbbb038b178ede7913771b7ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00ae124a219e0bf86098c07ea93bd4a0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a00ae124a219e0bf86098c07ea93bd4a0">static let NTP_MAXCLOCK</a> : Int32 = 10;</td></tr>
<tr class="memdesc:a00ae124a219e0bf86098c07ea93bd4a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">时钟精度最大值。  <br /></td></tr>
<tr class="separator:a00ae124a219e0bf86098c07ea93bd4a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1934cf5a9a29d70cb9deb030bcf913b6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a1934cf5a9a29d70cb9deb030bcf913b6">static let VERSION_3</a> : UInt32 = 3;</td></tr>
<tr class="memdesc:a1934cf5a9a29d70cb9deb030bcf913b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">NTP 版本号：VERSION_3  <br /></td></tr>
<tr class="separator:a1934cf5a9a29d70cb9deb030bcf913b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef3d935229660d9bdf8dd2d72d5b9259"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#aef3d935229660d9bdf8dd2d72d5b9259">static let VERSION_4</a> : UInt32 = 4;</td></tr>
<tr class="memdesc:aef3d935229660d9bdf8dd2d72d5b9259"><td class="mdescLeft">&#160;</td><td class="mdescRight">NTP 版本号：VERSION_4  <br /></td></tr>
<tr class="separator:aef3d935229660d9bdf8dd2d72d5b9259"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e2bd40ca7ebda2a009ca7e2e9d15017"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a6e2bd40ca7ebda2a009ca7e2e9d15017">static let TYPE_NTP</a> : String = &quot;NTP&quot;;</td></tr>
<tr class="memdesc:a6e2bd40ca7ebda2a009ca7e2e9d15017"><td class="mdescLeft">&#160;</td><td class="mdescRight">可能的 <code><a class="el" href="">getType()</a></code> 值，NTP协议。  <br /></td></tr>
<tr class="separator:a6e2bd40ca7ebda2a009ca7e2e9d15017"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae936a23b8687e7b9a52f0fc8a0a1c5a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#ae936a23b8687e7b9a52f0fc8a0a1c5a3">static let TYPE_ICMP</a> : String = &quot;ICMP&quot;;</td></tr>
<tr class="memdesc:ae936a23b8687e7b9a52f0fc8a0a1c5a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">可能的 <code><a class="el" href="">getType()</a></code> 值，ICMP协议。  <br /></td></tr>
<tr class="separator:ae936a23b8687e7b9a52f0fc8a0a1c5a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dedba9bfb3b349e63f7eb0401e35b8f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a6dedba9bfb3b349e63f7eb0401e35b8f">static let TYPE_TIME</a> : String = &quot;TIME&quot;;</td></tr>
<tr class="memdesc:a6dedba9bfb3b349e63f7eb0401e35b8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">可能的 <code><a class="el" href="">getType()</a></code> 值，TIME协议。  <br /></td></tr>
<tr class="separator:a6dedba9bfb3b349e63f7eb0401e35b8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71bd987ddd0edf3a1946c6084bc2b361"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html#a71bd987ddd0edf3a1946c6084bc2b361">static let TYPE_DAYTIME</a> : String = &quot;DAYTIME&quot;;</td></tr>
<tr class="memdesc:a71bd987ddd0edf3a1946c6084bc2b361"><td class="mdescLeft">&#160;</td><td class="mdescRight">可能的 <code><a class="el" href="">getType()</a></code> 值，DAYTIME协议。  <br /></td></tr>
<tr class="separator:a71bd987ddd0edf3a1946c6084bc2b361"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>RFC 1305 中描述的 NTP 数据消息头的接口，包含了对应字段的获取和设置方法。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7bd2e4ee05340ca72d774391567cb418" name="a7bd2e4ee05340ca72d774391567cb418"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bd2e4ee05340ca72d774391567cb418">&#9670;&#160;</a></span>getLeapIndicator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getLeapIndicator </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: UInt32</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取跳秒指示符。 </p>
<dl class="section return"><dt>返回</dt><dd>跳秒指示符（在 RFC-1305 中定义） </dd></dl>

</div>
</div>
<a id="ac1a60577907aed9da9105e269696bfdf" name="ac1a60577907aed9da9105e269696bfdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1a60577907aed9da9105e269696bfdf">&#9670;&#160;</a></span>getMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getMode </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>:UInt32</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取 NTP 中使用的模式。 </p>
<dl class="section return"><dt>返回</dt><dd>模式（在 RFC-1305 中定义） </dd></dl>

</div>
</div>
<a id="abbb281d002f8a71a1a0885c566fc062b" name="abbb281d002f8a71a1a0885c566fc062b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbb281d002f8a71a1a0885c566fc062b">&#9670;&#160;</a></span>getModeName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getModeName </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: String</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取 NTP 中使用的模式对应的字符串。例如 3=Client </p>
<dl class="section return"><dt>返回</dt><dd>NTP 中使用的模式对应的字符串 </dd></dl>

</div>
</div>
<a id="ace09a2c84c997002c19279fa8ab49a61" name="ace09a2c84c997002c19279fa8ab49a61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace09a2c84c997002c19279fa8ab49a61">&#9670;&#160;</a></span>getOriginateTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getOriginateTimeStamp </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取源时间戳。 </p>
<dl class="section return"><dt>返回</dt><dd>源时间戳，如 RFC-1305 中定义的 "originate" 时间 </dd></dl>

</div>
</div>
<a id="a62ec5b7a79bd28638228ea0ed96bb78a" name="a62ec5b7a79bd28638228ea0ed96bb78a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62ec5b7a79bd28638228ea0ed96bb78a">&#9670;&#160;</a></span>getPoll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getPoll </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>轮询间隔，如 RFC-1305 中定义。字段范围在 NTP_MINPOLL 和 NTP_MAXPOLL 之间 </dd></dl>

</div>
</div>
<a id="a1fefeb321f4507469590f4d91a2d7a57" name="a1fefeb321f4507469590f4d91a2d7a57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fefeb321f4507469590f4d91a2d7a57">&#9670;&#160;</a></span>getPrecision()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getPrecision </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>精度，如 RFC-1305 中定义 </dd></dl>

</div>
</div>
<a id="a0b8c457d49ff388eabc43eb92d8f0a61" name="a0b8c457d49ff388eabc43eb92d8f0a61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b8c457d49ff388eabc43eb92d8f0a61">&#9670;&#160;</a></span>getReceiveTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getReceiveTimeStamp </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>接收时间戳，如 RFC-1305 中定义的 "receive" 时间 </dd></dl>

</div>
</div>
<a id="a87a10a202db469efd34dc2e570f40a5a" name="a87a10a202db469efd34dc2e570f40a5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87a10a202db469efd34dc2e570f40a5a">&#9670;&#160;</a></span>getReferenceId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getReferenceId </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>参考 ID (32 位代码)，如 RFC-1305 中定义 </dd></dl>

</div>
</div>
<a id="a71518f8569106f12d782f70885d9feb2" name="a71518f8569106f12d782f70885d9feb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71518f8569106f12d782f70885d9feb2">&#9670;&#160;</a></span>getReferenceIdString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getReferenceIdString </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: String</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>参考 ID 的字符串表示 </dd></dl>

</div>
</div>
<a id="ab089b0b26783af1d4ffdcd59f314f3c8" name="ab089b0b26783af1d4ffdcd59f314f3c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab089b0b26783af1d4ffdcd59f314f3c8">&#9670;&#160;</a></span>getReferenceTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getReferenceTimeStamp </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>参考时间，如 RFC-1305 中定义的 "reference" 时间 </dd></dl>

</div>
</div>
<a id="aa4c3faa4c01cbce02a4320f8d1d6bcd8" name="aa4c3faa4c01cbce02a4320f8d1d6bcd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4c3faa4c01cbce02a4320f8d1d6bcd8">&#9670;&#160;</a></span>getRootDelay()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getRootDelay </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>根延迟，如 RFC-1305 中定义 </dd></dl>

</div>
</div>
<a id="ab4c5e4529bfe1694f672b9613d485bb7" name="ab4c5e4529bfe1694f672b9613d485bb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4c5e4529bfe1694f672b9613d485bb7">&#9670;&#160;</a></span>getRootDelayInMillisFloat64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getRootDelayInMillisFloat64 </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Float64</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>根延迟的毫秒表示 </dd></dl>

</div>
</div>
<a id="aecf8b501a8279f77a3724bf72668171b" name="aecf8b501a8279f77a3724bf72668171b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecf8b501a8279f77a3724bf72668171b">&#9670;&#160;</a></span>getRootDispersion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getRootDispersion </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>根离散度，如 RFC-1305 中定义 </dd></dl>

</div>
</div>
<a id="a5cfb18adf20eaaae87fb7969be09aed0" name="a5cfb18adf20eaaae87fb7969be09aed0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cfb18adf20eaaae87fb7969be09aed0">&#9670;&#160;</a></span>getRootDispersionInMillis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getRootDispersionInMillis </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int64</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>根离散度的毫秒表示 </dd></dl>

</div>
</div>
<a id="ad26374e89440d46421506052e7627722" name="ad26374e89440d46421506052e7627722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad26374e89440d46421506052e7627722">&#9670;&#160;</a></span>getRootDispersionInMillisFloat64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getRootDispersionInMillisFloat64 </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Float64</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>根离散度的毫秒表示 </dd></dl>

</div>
</div>
<a id="a40ca16996d6e3fa123f519676687e7e9" name="a40ca16996d6e3fa123f519676687e7e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40ca16996d6e3fa123f519676687e7e9">&#9670;&#160;</a></span>getStratum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getStratum </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: UInt32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>层级，如 RFC-1305 中定义的 stratum </dd></dl>

</div>
</div>
<a id="a92236fa08236748e726cf843f94a2b41" name="a92236fa08236748e726cf843f94a2b41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92236fa08236748e726cf843f94a2b41">&#9670;&#160;</a></span>getTransmitTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getTransmitTimeStamp </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: <a class="el" href="classcommonsNet_1_1ntp_1_1TimeStamp.html">TimeStamp</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>传输时间戳，如 RFC-1305 中定义的 "transmit" 时间 </dd></dl>

</div>
</div>
<a id="ab92e1ec8363b6cbe03036537b4b406d5" name="ab92e1ec8363b6cbe03036537b4b406d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab92e1ec8363b6cbe03036537b4b406d5">&#9670;&#160;</a></span>getType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getType </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: String</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回时间包的类型。值（例如 NTP、TIME、ICMP 等）对应于用于获取时间信息的协议。 </p>
<dl class="section return"><dt>返回</dt><dd>数据包类型的字符串标识符 </dd></dl>

</div>
</div>
<a id="a7e96c5865a64870ba2ce1829a8659b49" name="a7e96c5865a64870ba2ce1829a8659b49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e96c5865a64870ba2ce1829a8659b49">&#9670;&#160;</a></span>getUdpSocket()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getUdpSocket </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: UdpSocket</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取 NTP 客户端使用的的套接字。 </p>
<dl class="section return"><dt>返回</dt><dd>NTP 客户端使用的的套接字 </dd></dl>

</div>
</div>
<a id="a34090a8abb0dd770b642a2b0791121ae" name="a34090a8abb0dd770b642a2b0791121ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34090a8abb0dd770b642a2b0791121ae">&#9670;&#160;</a></span>getVersion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.getVersion </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: UInt32</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>版本，如 RFC-1305 中定义 </dd></dl>

</div>
</div>
<a id="a09b1761ca8e126573c4b3eb192c32ec1" name="a09b1761ca8e126573c4b3eb192c32ec1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09b1761ca8e126573c4b3eb192c32ec1">&#9670;&#160;</a></span>setLeapIndicator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setLeapIndicator </td>
          <td>(</td>
          <td class="paramname"><em>li</em>:&#160;</td>
          <td class="paramtype">Int32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置跳秒指示符。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">li</td><td>跳秒指示符代码 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad23fcac3bda308670962aa396e9bcbb5" name="ad23fcac3bda308670962aa396e9bcbb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad23fcac3bda308670962aa396e9bcbb5">&#9670;&#160;</a></span>setMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setMode </td>
          <td>(</td>
          <td class="paramname"><em>mode</em>:&#160;</td>
          <td class="paramtype">Int32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置模式，如 RFC-1305 中定义 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>要设置的模式 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a97737beb9bf339e72d19f633a725a168" name="a97737beb9bf339e72d19f633a725a168"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97737beb9bf339e72d19f633a725a168">&#9670;&#160;</a></span>setOriginateTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setOriginateTimeStamp </td>
          <td>(</td>
          <td class="paramname"><em>ts</em>:&#160;</td>
          <td class="paramtype">? TimeStamp</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置源时间戳。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ts</td><td>时间戳 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a66154105e9cd0b77bba3cde4058d1e93" name="a66154105e9cd0b77bba3cde4058d1e93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66154105e9cd0b77bba3cde4058d1e93">&#9670;&#160;</a></span>setPoll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setPoll </td>
          <td>(</td>
          <td class="paramname"><em>poll</em>:&#160;</td>
          <td class="paramtype">Int32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置轮询间隔，如 RFC-1305 中定义。字段范围在 NTP_MINPOLL 和 NTP_MAXPOLL 之间 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">poll</td><td>要设置的间隔 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab582eed511b06fe5954d76ceea77114a" name="ab582eed511b06fe5954d76ceea77114a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab582eed511b06fe5954d76ceea77114a">&#9670;&#160;</a></span>setPrecision()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setPrecision </td>
          <td>(</td>
          <td class="paramname"><em>precision</em>:&#160;</td>
          <td class="paramtype">Int32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置精度，如 RFC-1305 中定义 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">precision</td><td>精度 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa9d284182e049eec65a7dcadf8cf81f0" name="aa9d284182e049eec65a7dcadf8cf81f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9d284182e049eec65a7dcadf8cf81f0">&#9670;&#160;</a></span>setReceiveTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setReceiveTimeStamp </td>
          <td>(</td>
          <td class="paramname"><em>ts</em>:&#160;</td>
          <td class="paramtype">? TimeStamp</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置接收时间戳。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ts</td><td>时间戳 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a48c85214fd9fef8b216490c9617d48b6" name="a48c85214fd9fef8b216490c9617d48b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48c85214fd9fef8b216490c9617d48b6">&#9670;&#160;</a></span>setReferenceId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setReferenceId </td>
          <td>(</td>
          <td class="paramname"><em>refId</em>:&#160;</td>
          <td class="paramtype">UInt32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置参考时钟标识字段。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">refId</td><td>要设置的时钟 ID 字段 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a30a3abcc45de9f104e1f84d5d35fd811" name="a30a3abcc45de9f104e1f84d5d35fd811"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30a3abcc45de9f104e1f84d5d35fd811">&#9670;&#160;</a></span>setReferenceTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setReferenceTime </td>
          <td>(</td>
          <td class="paramname"><em>ts</em>:&#160;</td>
          <td class="paramtype">? TimeStamp</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置参考时间戳。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ts</td><td>时间戳 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4ceb251d6727ab7fdd2a6028f2d5a5e6" name="a4ceb251d6727ab7fdd2a6028f2d5a5e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ceb251d6727ab7fdd2a6028f2d5a5e6">&#9670;&#160;</a></span>setRootDelay()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setRootDelay </td>
          <td>(</td>
          <td class="paramname"><em>delay</em>:&#160;</td>
          <td class="paramtype">Int32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置根延迟，如 RFC-1305 中定义。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delay</td><td>要设置的延迟 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4c469ad53409a0b4f0eff4e7ab4e3ceb" name="a4c469ad53409a0b4f0eff4e7ab4e3ceb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c469ad53409a0b4f0eff4e7ab4e3ceb">&#9670;&#160;</a></span>setRootDispersion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setRootDispersion </td>
          <td>(</td>
          <td class="paramname"><em>dispersion</em>:&#160;</td>
          <td class="paramtype">Int32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置根离散度，如 RFC-1305 中定义。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dispersion</td><td>要设置的值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab235ce215132dac9b101917e4726f6a1" name="ab235ce215132dac9b101917e4726f6a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab235ce215132dac9b101917e4726f6a1">&#9670;&#160;</a></span>setSocketref()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setSocketref </td>
          <td>(</td>
          <td class="paramname"><em>dp</em>:&#160;</td>
          <td class="paramtype">?UdpSocket</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据 NTP 使用的套接字设置此对象的内容 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dp</td><td>NTP 使用的套接字 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad27cfd1efb44e8a66c19c060297a751d" name="ad27cfd1efb44e8a66c19c060297a751d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad27cfd1efb44e8a66c19c060297a751d">&#9670;&#160;</a></span>setStratum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setStratum </td>
          <td>(</td>
          <td class="paramname"><em>stratum</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置层级，如 RFC-1305 中定义。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stratum</td><td>要设置的层级 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af4c7488ca3652c81c86b985da193488d" name="af4c7488ca3652c81c86b985da193488d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4c7488ca3652c81c86b985da193488d">&#9670;&#160;</a></span>setTransmitTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setTransmitTime </td>
          <td>(</td>
          <td class="paramname"><em>ts</em>:&#160;</td>
          <td class="paramtype">? TimeStamp</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置传输时间戳。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ts</td><td>时间戳 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af7ce48314dda3d00535bd4c4d2642b45" name="af7ce48314dda3d00535bd4c4d2642b45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7ce48314dda3d00535bd4c4d2642b45">&#9670;&#160;</a></span>setVersion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ntp.NtpV3Packet.setVersion </td>
          <td>(</td>
          <td class="paramname"><em>version</em>:&#160;</td>
          <td class="paramtype">UInt32</td><td>)</td>
          <td>: Unit</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置版本，如 RFC-1305 中定义。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">version</td><td>要设置的版本 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a3699169247958c3f112d13ab53e3646c" name="a3699169247958c3f112d13ab53e3646c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3699169247958c3f112d13ab53e3646c">&#9670;&#160;</a></span>static let LI_ALARM_CONDITION</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let LI_ALARM_CONDITION : Int32 = 3;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>跳秒指示符。 </p>

</div>
</div>
<a id="a28c7a23e26c376f15a16d5cddfde1cd2" name="a28c7a23e26c376f15a16d5cddfde1cd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28c7a23e26c376f15a16d5cddfde1cd2">&#9670;&#160;</a></span>static let LI_LAST_MINUTE_HAS_59_SECONDS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let LI_LAST_MINUTE_HAS_59_SECONDS : Int32 = 2;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>跳秒指示符。 </p>

</div>
</div>
<a id="a83052720e5d907c64cd6b4885176c79a" name="a83052720e5d907c64cd6b4885176c79a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83052720e5d907c64cd6b4885176c79a">&#9670;&#160;</a></span>static let LI_LAST_MINUTE_HAS_61_SECONDS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let LI_LAST_MINUTE_HAS_61_SECONDS : Int32 = 1;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>跳秒指示符。 </p>

</div>
</div>
<a id="aea9f30ae115fa8a6a37ba2ee6821850f" name="aea9f30ae115fa8a6a37ba2ee6821850f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea9f30ae115fa8a6a37ba2ee6821850f">&#9670;&#160;</a></span>static let LI_NO_WARNING</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let LI_NO_WARNING : Int32 = 0;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>跳秒指示符。 </p>

</div>
</div>
<a id="a8dfc36330ccffff1e7e15b5f4426a18b" name="a8dfc36330ccffff1e7e15b5f4426a18b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8dfc36330ccffff1e7e15b5f4426a18b">&#9670;&#160;</a></span>static let MODE_BROADCAST</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_BROADCAST : Int32 = 5;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项5。 </p>

</div>
</div>
<a id="ab9e3e949bab85b44d85159ce384b473f" name="ab9e3e949bab85b44d85159ce384b473f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9e3e949bab85b44d85159ce384b473f">&#9670;&#160;</a></span>static let MODE_CLIENT</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_CLIENT : Int32 = 3;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项3。 </p>

</div>
</div>
<a id="ab25489385c5449277bbb3561cd696717" name="ab25489385c5449277bbb3561cd696717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab25489385c5449277bbb3561cd696717">&#9670;&#160;</a></span>static let MODE_CONTROL_MESSAGE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_CONTROL_MESSAGE : Int32 = 6;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项6。 </p>

</div>
</div>
<a id="a9d9e2aaa2e22e4a14d8aa64df046cb17" name="a9d9e2aaa2e22e4a14d8aa64df046cb17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d9e2aaa2e22e4a14d8aa64df046cb17">&#9670;&#160;</a></span>static let MODE_PRIVATE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_PRIVATE : Int32 = 7;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项7。 </p>

</div>
</div>
<a id="ad32338c49e215560be53338ec9434b9e" name="ad32338c49e215560be53338ec9434b9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad32338c49e215560be53338ec9434b9e">&#9670;&#160;</a></span>static let MODE_RESERVED</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_RESERVED : Int32 = 0;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项0。 </p>

</div>
</div>
<a id="a26d26c338da03c1bc8c62c7592f8479a" name="a26d26c338da03c1bc8c62c7592f8479a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26d26c338da03c1bc8c62c7592f8479a">&#9670;&#160;</a></span>static let MODE_SERVER</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_SERVER : Int32 = 4;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项4。 </p>

</div>
</div>
<a id="ae966780c8e7c539ba96108f72559d5e3" name="ae966780c8e7c539ba96108f72559d5e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae966780c8e7c539ba96108f72559d5e3">&#9670;&#160;</a></span>static let MODE_SYMMETRIC_ACTIVE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_SYMMETRIC_ACTIVE : Int32 = 1;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项1。 </p>

</div>
</div>
<a id="ad42baa9e894fdcb01fe6129c2db31b10" name="ad42baa9e894fdcb01fe6129c2db31b10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad42baa9e894fdcb01fe6129c2db31b10">&#9670;&#160;</a></span>static let MODE_SYMMETRIC_PASSIVE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let MODE_SYMMETRIC_PASSIVE : Int32 = 2;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>模式选项2。 </p>

</div>
</div>
<a id="a00ae124a219e0bf86098c07ea93bd4a0" name="a00ae124a219e0bf86098c07ea93bd4a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00ae124a219e0bf86098c07ea93bd4a0">&#9670;&#160;</a></span>static let NTP_MAXCLOCK</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let NTP_MAXCLOCK : Int32 = 10;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>时钟精度最大值。 </p>

</div>
</div>
<a id="a005602de4ea453cead1ab0afed5b8528" name="a005602de4ea453cead1ab0afed5b8528"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a005602de4ea453cead1ab0afed5b8528">&#9670;&#160;</a></span>static let NTP_MAXPOLL</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let NTP_MAXPOLL : Int32 = 14;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>最大轮询间隔。 </p>

</div>
</div>
<a id="a8eca70afbbb038b178ede7913771b7ab" name="a8eca70afbbb038b178ede7913771b7ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eca70afbbb038b178ede7913771b7ab">&#9670;&#160;</a></span>static let NTP_MINCLOCK</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let NTP_MINCLOCK : Int32 = 1;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>时钟精度最小值。 </p>

</div>
</div>
<a id="a8d15baadd0df83b17e2fbe0ea08ac3e2" name="a8d15baadd0df83b17e2fbe0ea08ac3e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d15baadd0df83b17e2fbe0ea08ac3e2">&#9670;&#160;</a></span>static let NTP_MINPOLL</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let NTP_MINPOLL : Int32 = 4;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>最小轮询间隔。 </p>

</div>
</div>
<a id="a02286492ed19243bd9edd500a1f167f8" name="a02286492ed19243bd9edd500a1f167f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02286492ed19243bd9edd500a1f167f8">&#9670;&#160;</a></span>static let NTP_PORT</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let NTP_PORT : UInt16 = 123;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标准 NTP UDP 端口 </p>

</div>
</div>
<a id="a71bd987ddd0edf3a1946c6084bc2b361" name="a71bd987ddd0edf3a1946c6084bc2b361"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71bd987ddd0edf3a1946c6084bc2b361">&#9670;&#160;</a></span>static let TYPE_DAYTIME</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let TYPE_DAYTIME : String = &quot;DAYTIME&quot;;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>可能的 <code><a class="el" href="">getType()</a></code> 值，DAYTIME协议。 </p>

</div>
</div>
<a id="ae936a23b8687e7b9a52f0fc8a0a1c5a3" name="ae936a23b8687e7b9a52f0fc8a0a1c5a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae936a23b8687e7b9a52f0fc8a0a1c5a3">&#9670;&#160;</a></span>static let TYPE_ICMP</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let TYPE_ICMP : String = &quot;ICMP&quot;;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>可能的 <code><a class="el" href="">getType()</a></code> 值，ICMP协议。 </p>

</div>
</div>
<a id="a6e2bd40ca7ebda2a009ca7e2e9d15017" name="a6e2bd40ca7ebda2a009ca7e2e9d15017"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e2bd40ca7ebda2a009ca7e2e9d15017">&#9670;&#160;</a></span>static let TYPE_NTP</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let TYPE_NTP : String = &quot;NTP&quot;;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>可能的 <code><a class="el" href="">getType()</a></code> 值，NTP协议。 </p>

</div>
</div>
<a id="a6dedba9bfb3b349e63f7eb0401e35b8f" name="a6dedba9bfb3b349e63f7eb0401e35b8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dedba9bfb3b349e63f7eb0401e35b8f">&#9670;&#160;</a></span>static let TYPE_TIME</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let TYPE_TIME : String = &quot;TIME&quot;;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>可能的 <code><a class="el" href="">getType()</a></code> 值，TIME协议。 </p>

</div>
</div>
<a id="a1934cf5a9a29d70cb9deb030bcf913b6" name="a1934cf5a9a29d70cb9deb030bcf913b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1934cf5a9a29d70cb9deb030bcf913b6">&#9670;&#160;</a></span>static let VERSION_3</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let VERSION_3 : UInt32 = 3;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>NTP 版本号：VERSION_3 </p>

</div>
</div>
<a id="aef3d935229660d9bdf8dd2d72d5b9259" name="aef3d935229660d9bdf8dd2d72d5b9259"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef3d935229660d9bdf8dd2d72d5b9259">&#9670;&#160;</a></span>static let VERSION_4</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ntp.NtpV3Packet.static let VERSION_4 : UInt32 = 4;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>NTP 版本号：VERSION_4 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/ntp/<a class="el" href="ntpV3__packet_8cj.html">ntpV3_packet.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1ntp.html">ntp</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1ntp_1_1NtpV3Packet.html">NtpV3Packet</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
